//
//  XXObject.m
//  objc
//
//  Created by iMac on 2018/3/29.
//

#import "XXObject.h"
#import "YYObject.h"
#import <objc/runtime.h>
struct YTYTest {
	int a;
	int b;
};


@implementation XXObject
//+ (void)load{
//
//	Class cls = NSClassFromString(@"YYObject");
//	[cls performSelector:@selector(ss) withObject:nil afterDelay:0];
//	[YYObject ss];
//	NSLog(@"XXObject load");
//	XXObject * obj = [XXObject new];
//	[obj hello];
//	[self ss];
//
//	int *i[2];
//	i[0] = 10;
//	i[1] = 11;
//	NSLog(@"%d,%d,%d,%d",i[0],i[1],*i,i[2]);
//	[[YYObject new] performSelector:@selector(ss)];
//	id cls = [YYObject class];
//	void *obj = &cls;
//	[(__bridge id)obj performSelector:@selector(ss)];
	
	
//	int *b[2];
//	b[0] = 10;
//	b[1] = 2;
//	int *c = b+1;
//	int *d = c + 1;
//	printf("%d",c);
//
//	NSInteger t = 10;
//	NSInteger e = 100;
//	__block NSInteger be = e;
//	void(^block)(void) = ^{
////		t ++;
//		NSLog(@"%ld",t);
//		be ++;
//		NSLog(@"%ld",be);
//	};
//	t ++;
//	be ++;
//	block();
//
	
	//nil NULL
	
//	int sd = 100;
//	int& sds = sd;
//	int &sdss = sds;
//
//	sd += 1;
//	NSLog(@"%ld %ld %ld",sd,sds,sdss);
//	sds += 1;
//	NSLog(@"%ld %ld %ld",sd,sds,sdss);
//	sdss ++;
//	NSLog(@"%ld %ld %ld",sd,sds,sdss);
//
//
//	YTYTest test;
//	test.a = 10;
//	test.b = 100;
//	YTYTest *pTest = &test;
//	NSLog(@"%p  %p",&test,pTest);
//	NSLog(@"%ld  %ld",test.a,(*pTest).a);
//
//	int b = 10;
//	int *a = &b;
//	NSLog(@"%ld  %ld",b,*a);
//
//	NSLog(@"%ld",sizeof(0xFFFF));
//
//
//
//	NSNumber *number1 = @1;
//	NSNumber *number2 = @2;
//	NSNumber *number3 = @3;
//	NSNumber *numberFFFF = @(0xFFFF);
//	NSNumber *numberFFFFFFFFFFFFFF = @(0xFFFFFFFFFFFFF);
//
//
//	NSLog(@"number1 pointer is %p", number1);
//	NSLog(@"number2 pointer is %p", number2);
//	NSLog(@"number3 pointer is %p", number3);
//	NSLog(@"numberffff pointer is %p", numberFFFF);
//	NSLog(@"numberFFFFFFFFFFFFFF pointer is %p", numberFFFFFFFFFFFFFF);
//}

+ (void)initialize
{
    
}

+ (void)ss{
	NSLog(@"ssss");
	
}
- (void)hello {
	NSLog(@"Hello");
}

@end
